﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PSelectPrice.aspx.cs" Inherits="SJZD_NameManage" %>
<%@ Register Src="../usercontrol/PageUrlGridView.ascx" TagName="PageUrlGridView" TagPrefix="uc1" %>
<html>
<head id="Head1" runat="server">
<title>批发管理 >> 价格查询</title>
<link href="../css/adminCss.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/changerows.js"></script>
<script type="text/javascript" src="../js/rl.js"></script>
<script type="text/javascript">
function openInExcel()
{
    window.open("PriceInExcel.aspx","","width=900px,height=650px,left=100px,top=30px,scrollbars=yes");
    return false;

}
</script>
<link href="../js/loading.css" rel="stylesheet" type="text/css" />
</head>
<script type="text/javascript" src="../js/loading.js" charset="gb2312"></script>
<body>
    <form id="form1" runat="server">
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="2%" height="1%">
                    <img src="../images/module.gif" width="20" height="22"/></td>
                <td ><asp:Label ID="lblPath" runat="server" Text="Label"></asp:Label>
       </td></tr>
        </table>
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td bgcolor="#3CB6E5" height="5px">
                </td>
            </tr>
        </table>
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
                <tr><td colspan="2" width="99%" align="right" >
                    <img src="../images/search.gif" alt="搜索"  height="16" />
                    类型：
                    <asp:TextBox ID="ComoditiesType" runat="server" CssClass="input1" Width="60px"></asp:TextBox>品牌：
                    <asp:TextBox ID="Brand" runat="server" CssClass="input1" Width="60px"></asp:TextBox>名称：
                    <asp:TextBox ID="ComoditiesName" runat="server" CssClass="input1" Width="80"></asp:TextBox>型号：
                    <asp:TextBox ID="Specifications" runat="server" CssClass="input1" Width="80"></asp:TextBox>
                    型号编号：<asp:TextBox ID="modulbh" runat="server" CssClass="input1" Width="60px"></asp:TextBox>
                        库存：<asp:DropDownList ID="FactNum" runat="server">
                        <asp:ListItem Value="">全部</asp:ListItem>
                        <asp:ListItem Value=">0">大于0</asp:ListItem>
                        <asp:ListItem Value="=0">等于0</asp:ListItem>
                        <asp:ListItem Value="<0">小于0</asp:ListItem>
                    </asp:DropDownList>
                        采购数：<asp:DropDownList ID="countStock" runat="server">
                        <asp:ListItem Value="">全部</asp:ListItem>
                        <asp:ListItem Value=">0">大于0</asp:ListItem>
                        <asp:ListItem Value="=0">等于0</asp:ListItem>
                        <asp:ListItem Value="<0">小于0</asp:ListItem>
                    </asp:DropDownList>
                    <asp:Button ID="btnSearch" runat="server" Text=" 搜索 " CssClass="submit" OnClick="btnSearch_Click"  /></td>
            </tr>
        </table>
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td bgcolor="#3CB6E5" height="5px">
                </td>
            </tr>
        </table>
        <asp:GridView ID="GvData" runat="server" Width="99%" AutoGenerateColumns="False" CssClass="gridview" EmptyDataText="没有数据" OnRowDataBound="GvData_RowDataBound">
            <RowStyle Height="25px" />
            <PagerSettings Visible="False" />
            <Columns>        
                <asp:BoundField HeaderText="Id" DataField="stockId" ItemStyle-HorizontalAlign="Center" />
                <asp:BoundField HeaderText="型号编号" DataField="modulbh"/>
                <asp:BoundField HeaderText="类型" DataField="ComoditiesType"/>
                <asp:BoundField HeaderText="品牌" DataField="Brand"/>
                <asp:BoundField HeaderText="名称" DataField="ComoditiesName"/>
                <asp:BoundField HeaderText="型号" DataField="Specifications" >
                    <ItemStyle HorizontalAlign="left" />
                </asp:BoundField>
                <asp:BoundField HeaderText="批发价" DataField="WholeMoney1"/>
                <asp:BoundField HeaderText="最低限价" DataField="RestMoney"/>
                 <asp:BoundField HeaderText="活动价" DataField="ActiveMoney"/>
                <asp:BoundField DataField="countStock" HeaderText="采购/次" />
                <asp:BoundField DataField="ProcNum" HeaderText="总数"/>
                <asp:BoundField DataField="SalesNum" HeaderText="出售" />
                <asp:BoundField DataField="FactNum" HeaderText="库存" />                   
            </Columns>
            <RowStyle HorizontalAlign="Center" />
            <EmptyDataRowStyle ForeColor="Red" HorizontalAlign="Center" />
        </asp:GridView>
        
        <table width="99%" border="0" cellspacing="0" cellpadding="0">
            <tr>
            <td align="center" >
                   <uc1:PageUrlGridView ID="PageNavigator1" runat="server" DataId="GvData" ConnectionString="connstr" ShowType="Num" PageSize="20" />
                </td>
            </tr>
        </table>
        <asp:HiddenField ID="HFroid" runat="server" />
        <asp:HiddenField ID="hfxs" runat="server" />
    </form>
</body>
</html>
<script language="javascript"><!--
//senfe("表格名称","奇数行背景","偶数行背景","鼠标经过背景","点击后背景");
 senfe("GvData","#ECF9FC","#FFFFFF","#D6F1F8");
--></script>
